import request from '@/utils/request'

/** 获取分类管理列表 */
export function CommodityClassificationList(params) {
  return request({
    url: '/shop/commodityClassification/list',
    method: 'get',
    params
  })
}

/** 删除 */
export function CommodityClassificationDel(data) {
  return request({
    url: '/shop/commodityClassification/del',
    method: 'post',
    data
  })
}

/** 添加分类 */
export function CommodityClassificationAdd(data) {
  return request({
    url: '/shop/commodityClassification/add',
    method: 'post',
    data
  })
}

/** 修改编辑 */
export function CommodityClassificationEdit(data) {
  return request({
    url: '/shop/commodityClassification/Edit',
    method: 'post',
    data
  })
}

/** 获取二级分类 */
export function getSecond(data) {
  return request({
    url: '/shop/commodityClassification/getSecond',
    method: 'post',
    data
  })
}

/** 添加标签 */
export function productLabelAdd(data) {
  return request({
    url: '/shop/productLabel/add',
    method: 'post',
    data
  })
}

/** 获取标签列表 */
export function productLabelList(data) {
  return request({
    url: '/shop/productLabel/list',
    method: 'post',
    data
  })
}

/** 编辑标签列表 */
export function productLabelEdit(data) {
  return request({
    url: '/shop/productLabel/Edit',
    method: 'post',
    data
  })
}

/** 删除标签列表 */
export function productLabelDel(data) {
  return request({
    url: '/shop/productLabel/del',
    method: 'post',
    data
  })
}
